package BinarySearchTree;

import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 苏李涛
 * Date: 2024-07-28
 * Time: 17:45
 */
public class Test {
    public static void main(String[] args) {
        MyBinarySearchTree myBinarySearchTree = new MyBinarySearchTree();
        myBinarySearchTree.insert(10);
        myBinarySearchTree.insert(5);
        myBinarySearchTree.insert(15);
        myBinarySearchTree.insert(9);
        myBinarySearchTree.insert(3);
        myBinarySearchTree.insert(18);


        MyBinarySearchTree.TreeNode ret = myBinarySearchTree.search(18);
        System.out.println(ret.val);

        myBinarySearchTree.remove(10);
    }
}
